home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / vdtj122b.zip / DEMO5.VDM < prev    next >
Text File  |  1992-11-30  |  5KB  |  138 lines

  1. RI(9)/VEDIT Family - Word Processing Features/
  2. M(H)            !Display header
  3.  
  4. YT/
  5. All VEDIT Family editors have several features which simplify word processing.
  6. These include word wrap, formatting of paragraphs between adjustable margins,
  7. optional justification and centering of lines.
  8.  
  9. VEDIT can print the text verbatim, or a macro, such as the supplied PRINT.VDM,
  10. can be used to add headers and page numbers to each page.  For more
  11. sophisticated printing, files generated with VEDIT can be imported into almost
  12. any word processor or desktop publishing package.  Greenview's print formatter
  13. V-PRINT and spelling corrector V-SPELL are available as inexpensive options.
  14.  
  15. VEDIT is ideal for preparing text for use with desktop publishing systems
  16. such as Xerox Ventura (tm).  After the text is entered into Ventura and
  17. formatted, it can still be written out to an ASCII file for further editing
  18. with VEDIT; the formatting "tags" can also be edited.
  19.  
  20. /
  21.  
  22. M(K)
  23. 10XS(100)        !Need 10 line window
  24. M(W)            !Create instruction window; set attributes
  25. EZY            !Empty edit buffer
  26. EB demo.txt        !Load demo text
  27.  
  28. $N/|L|L/ I/
  29. /            !Add a blank line
  30. -2C            !Position on blank line
  31. 60YMR            !Set right margin in case user doesn't
  32. ES 13 1            !Enable Insert mode
  33.  
  34. EE(1)
  35. B#K
  36. I/To enable word wrap you must first set the desired right margin.  Press
  37. <Alt-C> for the {CONFIG} sub-menu.  Select "Word Processing".  Then select
  38. "Right Margin".  At the prompt for the new value enter the desired right
  39. margin, e.g. "65" and press <Enter>.  Press <Esc> twice (or <Ctrl-C> once)
  40. to remove the menu system.
  41.  
  42. Now enter a new line of text.  Notice how any words which don't quite fit
  43. within the right margin are wrapped to the next line.
  44.  
  45.         --- Press <Esc> to continue ---/
  46. B -V
  47. EE(@)
  48. V
  49.  
  50. B 6L -2C        !Position cursor to end of a line
  51. EE(1)
  52. B#K
  53. I/The keys <F7> and <F8> change the "left margin".  <F8> moves the margin to
  54. the right and <F7> moves the margin to the left.  Normally the margin is at
  55. column 1.
  56.  
  57. Be sure you are in "Insert" mode and press <Enter> to start a new line.  Now
  58. press <F8>; the cursor moves to column 5.  Type a few words and another
  59. <Enter>.  Now the cursor starts in column 5.  Enter a few more words and
  60. <Enter>.  Press <F8> again; the cursor moves to column 9.  Press <F7>; the
  61. cursor moves back to column 5.  Experiment.
  62.         --- Then press <Esc> to continue ---/
  63. B -V
  64. EE(@)
  65. V
  66.  
  67. 1YML            !Reset left margin
  68. EE(1)
  69. B#K
  70. I/The {CONFIG, Word processing} sub-menu sets the "right margin" and the
  71. initial "left margin".  The left margin can then be changed in increments of
  72. 4 using the indent keys <F7> and <F8>.  The key <Ctrl-F> re-formats an
  73. existing paragraph to within new right and left margins.
  74.  
  75. Using the {CONFIG, Word processing} sub-menu, set the right margin to column
  76. 55 and the left margin to column 9.  Now press <Ctrl-F> to reformat the
  77. paragraph.  Notice the effect.  (You need to press <PgUp>.)  Since the cursor
  78. has also moved to the next paragraph, you can immediately press <Ctrl-F> again
  79. to re-format the next paragraph.      --- Press <Esc> to continue ---/
  80.  
  81. B -V
  82. EE(@)
  83. V
  84.  
  85. B 6L -2C        !Position cursor to end of a line
  86. EE(1)
  87. B#K
  88. I/The paragraphs just reformatted are not justified - they have a ragged right
  89. margin.  However, you can also optionally justify paragraphs.
  90.  
  91. Enter the {CONFIG, Word processing} sub-menu and select "Justify paragraphs".
  92. At the prompt for a new value enter "1" and press <Enter>.  This enables
  93. justification.  Remove the menu system.  Move the cursor to a paragraph to be
  94. justified.  Press <Ctrl-F>.  This re-formats and justifies the paragraph.
  95.  
  96.         --- Press <Esc> to continue ---/
  97. B -V
  98. EE(@)
  99. V
  100.  
  101. EZY            !Empty edit buffer
  102. EB demo5.txt        !Load demo text
  103. 9YML            !Set left margin
  104.  
  105. EE(1)
  106. B#K
  107. I/Notice the structure of the two paragraphs above.  Reformatting a paragraph
  108. with <Ctrl-F> always preserves this structure.
  109.  
  110. Press <Ctrl-F> twice.  Notice how the paragraphs have been reformatted to new
  111. left and right margins.  However the "offset" or "indent" of the first line
  112. has been preserved.
  113.  
  114.         --- Press <Esc> to continue ---/
  115. B -V
  116. EE(@)
  117. V
  118.  
  119. 1YML
  120. 60YMR
  121. Z
  122.  
  123. EE(1)
  124. B#K
  125. I/Enter a short line of text.  Leave the cursor anywhere on the line.  Press
  126. <Alt-E> to select the {EDIT} sub-menu.  Select "Center line" to center the
  127. line between the current left and right margins.  (They are currently set to
  128. 1 and 55.)
  129.  
  130. This also moves the cursor to the next line so that you could center it too.
  131. If you used this function often, you could use keystroke macros to assign
  132. this function to a dedicated "hot-key".
  133.  
  134.         --- Press <Esc> to return to the Main Menu ---/
  135. B -V
  136. EE(@)
  137. V
  138.